package models

import "gorm.io/gorm"

type Read struct {
	gorm.Model
	UserId  int    `gorm:"type:int"json:"user_id"`
	NovelId int    `gorm:"type:int"json:"novel_id"`
	Type    string `gorm:"type:enum('已完成阅','未完成阅')"json:"type"`
}

func (r *Read) Del() error {
	return DB.Delete(&r).Error
}
